import fetch from '@/utils/request'

// 创建订单
export function addBillInfo(data) {
  return fetch({
    url: '/order/create',
    method: 'post',
    data: data
  })
}

// 查询客户名称
export function queryCustomer(queryString) {
  return fetch({
    url: '/order/customer',
    method: 'get',
    params: {
      customer: queryString
    }
  })
}

// 查询货运部
export function queryFreight(queryString) {
  return fetch({
    url: '/order/freight',
    method: 'get',
    params: {
      freight: queryString
    }
  })
}
